Skip to content

⚡ Cache wheel builds and select optimized MLIR - #464

Open
burgholzer wants to merge 2 commits into
mainfrom
codex/optimized-wheel-builds
Open

⚡ Cache wheel builds and select optimized MLIR#464
burgholzer wants to merge 2 commits into
mainfrom
codex/optimized-wheel-builds

Conversation

@burgholzer

@burgholzer burgholzer commented Sep 8, 2026

Copy link
Copy Markdown
Member

🤖 AI text below 🤖

Description

Expose mlir-assertions in workflows that install MLIR, retaining the current assertion-enabled default. Pin munich-quantum-software/setup-mlir#255 so consumers can explicitly request the optimized SDK from munich-quantum-software/portable-mlir-toolchain#94.

Use the existing sccache action and GitHub cache policy for cibuildwheel: main writes, other refs read only. Linux projects must install sccache inside their build container and forward the documented cache environment variables with cibuildwheel environment-pass; munich-quantum-toolkit/core#2476 supplies this forwarding and exercises the supported matrix.

Wheel builds also accept an optional xcode-version. Core CD selects Xcode 26.6 to match the macOS LTO SDK; callers that omit it keep the runner default. Linux image alignment and BOLT profiling/repair belong to the SDK and consuming project configuration.

Validation: all pre-commit checks pass, including workflow schemas and zizmor. Cross-platform execution awaits the companion Core PR and publication of the new SDK archives.

AI assistance: implemented and checked with Codex.

Checklist

  • The pull request only contains commits that are focused and relevant to this change.
  • I have added appropriate tests that cover the new/changed functionality.
  • I have updated the documentation to reflect these changes.
  • I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.
  • I have added migration instructions to the upgrade guide (if needed).
  • The changes follow the project's style guidelines and introduce no new warnings.
  • The changes are fully tested and pass the CI checks.
  • I have reviewed my own code changes.

If PR contains AI-assisted content:

  • Any agent that created, edited, or submitted GitHub content was explicitly authorized for that scope, as required by our AI Usage Guidelines.
  • Every agent-authored or agent-edited public text body begins with the visible disclosure 🤖 *AI text below* 🤖 (titles are exempt).
  • I have disclosed AI assistance in the PR description.
  • I confirm that I have personally reviewed and understood all AI-generated content, and accept full responsibility for it.

Allow release consumers to select the SDK Xcode version and retain the
default runner compiler for other wheel builds.

Assisted-by: GPT-6 via Codex
Comment on lines +90 to +93
run: |
developer_dir="/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer"
test -d "$developer_dir"
echo "DEVELOPER_DIR=$developer_dir" >> "$GITHUB_ENV"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

continuous integration Anything related to the CI setup enhancement Improvement of an existing feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants